package com.itheima.web;

import com.itheima.pojo.Checkgroup;
import com.itheima.service.SetmealGroupService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/setmealgroup")
public class SetmealGroupController {
    @DubboReference
    private SetmealGroupService setmealGroupService;

    @GetMapping("/findGroupBySid/{Sid}")
    public Long[] findGroupBySid(@PathVariable("Sid") Long id){
     return setmealGroupService.findGroupBySid(id);
    }
}
